/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frdssl.h                                           */
/*  NOTE      = ssl                                                */
/*  DATE      = 2016/01/26                                         */
/*******************************************************************/

#ifndef __FRDSSL_H_
#define __FRDSSL_H_

#define SSL_TEMP_DIR    "../temp"
#define SHM_FILE        "../temp/shm_ssl_file"
#define SEM_FILE        "../temp/sem_ssl_file"
#define SSL_PID_FILE    "../temp/dssl_pid"

#define SSL_VERSION         3

#define SSL_TYPE_SYN        1
#define SSL_TYPE_FIN        2
#define SSL_TYPE_DATA       3

typedef struct __sniffer_ipinfo {
    int i_sip;
    int i_dip;
    int i_sport;
    int i_dport;
} sniffer_ipinfo;

typedef struct __ssl_option {
    int i_version;              //版本信息
    sniffer_ipinfo st_ipinfo;   //数据的ip信息
    struct timeval st_ts;       //数据包时间
    int i_conn_type;            //数据类型 (syn,data,fin)
} ssl_option;

typedef struct __ssl_decode {
    ssl_option st_option;
    int i_decode_len;           //解码后数据长度
    char p_decode[0];           //解码后的信息
} ssl_decode;




#endif
